package com.qf.service;

import com.qf.entity.Emplyee;
import com.qf.entity.Permission;
import com.qf.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmplyeeService {
    Emplyee login(String ename, String epassword);

    List<Emplyee>  getAllEmplyee();

    Emplyee findByEname(String ename);

    List<Permission> getPermissionByUserName(String ename);

    Role getByEnameRole(String ename);

    Integer getByEnameEmplyee(String ename);

    void updateRole(Integer eid,Integer rid);

    int deleteEmplyee(String ename);

    void updEmplyee(Emplyee emplyee);

    Emplyee saveOne(Emplyee emp);

    String sendCode(String email);

    Emplyee findByEmail(String eemail);

    String getEnameByTel(String etel);
}
